/**
*
* author ThuanLT
* Aug 27, 2014
*
*/

package vn.fsoft.gst.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import vn.fsoft.gst.domain.Sic;
import vn.fsoft.gst.service.AddressService;
import vn.fsoft.gst.service.SicService;

@Repository
@Controller
public class SICController {
	@Autowired
	private SicService sicService;
	@Autowired
    private AddressService addressService;
	
	@RequestMapping(value="/lookupSIC", method=RequestMethod.GET)
	public String listContact(ModelMap model){
		List<Sic> listSIC= sicService.getListSic();   
    	model.addAttribute("listSIC", listSIC);
		return "lookupSIC";
	}

}
